package com.rainbow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rainbow.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface UserService extends IService<User> {

    int hrReg(String username, String password);

    List<User> getHrsByKeywords(String keywords);

    int updateHr(User hr);

    int updateHrRoles(Long hrId, Long[] rids);

    User getHrById(Long hrId);

    int deleteHr(Long hrId);

    List<User> getAllHrExceptAdmin();

    List<User> getAllHr();
}
